﻿<?xml version="1.0" encoding="utf-8" ?>
<!--

In encoded url, put:
{a} : artist
{b} : album (optionnal)
{n} : track name

in regexp, two cases :

if the search results to a list of results page, enter the regexp that leads to the first lyrics in order to download it into <firstLinkOnSearchPage></firstLinkOnSearchPage>
and you have to put the lyrics results in <resultsOnLyricsPage></resultsOnLyricsPage>

for the firstLinkOnSearchPage, you have to put the group "url" to navigate to it
for the resultsOnLyricsPage, you can give the "artist", "song" and must give the "lyrics"

-->
<providers>
  
  <provider>
    <name>www.wiki-lyrics.org</name>
    <className>iTunesFastForward.Lyrics.WikiLyrics</className>
    <methodName>FetchLyricsResults</methodName>
  </provider>
  
  <provider>
    <name>SeekLyrics</name>
    <url>http://seeklyrics.com/</url>
    <encodedUrl>
      <url>http://seeklyrics.com/lyrics/{a}/{n}.html</url>
    </encodedUrl>
    <replacements>
      <replacement oldStr=" " newStr="-" />
    </replacements>
    <regex>
      <resultsOnLyricsPage><![CDATA[<b><h2>(?<artist>[^>]+) - (?<song>[^>]+)</h2></b>\s*<br /><br />\s*(?<lyrics>.*)</div>\s*<br /><br />]]></resultsOnLyricsPage>
    </regex>
  </provider>
  
  <provider>
    <name>Leo's Lyrics</name>
    <url>http://www.leoslyrics.com/</url>
    <encodedUrl>
      <url>http://www.leoslyrics.com/search.php?search={a}+{n}&amp;sartist=1&amp;ssongtitle=1</url>
      <appendSearchSuggestionUrl>True</appendSearchSuggestionUrl>
    </encodedUrl>
    <replacements>
      <replacement oldStr=" " newStr="+" />
    </replacements>
    <regex>
      <firstLinkOnSearchPage><![CDATA[<a href="(?<url>/listlyrics.php.*?)">]]></firstLinkOnSearchPage>
      <resultsOnLyricsPage><![CDATA[<h1 align="center">\s*<a href="/artists/.+?">(?<artist>[^>]+)</a>\s*-\s*(?<song>[^>]+?)\s+.+?</h1>\s*.*?<p>\s*<font face="[^"]+" size=[^>]+>\s*(?<lyrics>.+?)\s*</font>\s*</p>]]></resultsOnLyricsPage>
    </regex>
  </provider>
  
  <provider>
    <name>AZLyrics</name>
    <url>http://www.azlyrics.com/</url>
    <encodedUrl>
      <url>http://www.google.com/search?q={a}+{n}+lyrics+site%3Awww.azlyrics.com/lyrics&amp;btnI&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a
      </url>
    </encodedUrl>
    <googleIsFeelingLucky>true</googleIsFeelingLucky>
    <regex>
      <resultsOnLyricsPage><![CDATA[(?<artist>[^>]+)\s+LYRICS</B><BR><BR>\s*<FONT size=2>\s*<B>"(?<song>[^>]+)"</b><BR>\s*(?<lyrics>.*)\[ <a]]></resultsOnLyricsPage>
    </regex>
  </provider>
</providers>